<template>
	<view class="formPage">

		<form>

			<cLabel title='周简报提交单位' :disabled="true" v-model='totalData.fSubunit' :dataText='totalData.fSubunit'
				rightIcon='' mode='text' />
			<cLabel title='填报人' :disabled="true" v-model='totalData.fReportname' :dataText='totalData.fReportname'
				rightIcon='' mode='text' />

			<view class="cu-form-group margin-top ">
				<image src="@/static/Scope.png" mode="" style="width: 30upx;height: 30upx;vertical-align: middle;">
				</image>
				<view class="title">周简报日期</view>
				<picker mode="date" :value="totalData.fWeeklyreportdates" :start="startDates" :end="timing"
					@change="getWeekdates">
					<view class="picker">
						{{ totalData.fWeeklyreportdates }}
					</view>
				</picker>
			</view>
			<!-- 	<cLabel title='周简报日期' over="calc(5em + 15px)" :dataText='totalData.fWeeklyreportdates'
			v-model='totalData.fWeeklyreportdates' mode='date1' @input="getWeekdates" /> -->
			<cLabel title='填报周次' :disabled="true" v-model='totalData.fReportingweek'
				:dataText='totalData.fReportingweek' rightIcon='' mode='text' />



			<cLabel title='工作简报概述' v-model='totalData.fBriefingoverview' :dataText='totalData.fBriefingoverview'
				rightIcon='' mode='textarea' />
			<cLabel title='填报日期' :disabled="true" v-model='totalData.fReportdates' :dataText='totalData.fReportdates'
				rightIcon='' mode='text' />

			<view class="cu-bar bg-white" style="margin-top: 15upx;">

				<view class="action">
					<image src="@/static/unscope.png" mode=""
						style="width: 30upx;height: 30upx;vertical-align: middle;">
						相关资料附件
				</view>
				<view class="action">
					{{fileList.length}}/{{count}}
				</view>
			</view>
			<view class="cu-form-group">
				<view class="grid col-4 grid-square flex-sub">
					<view class="bg-img" v-for="(item,index) in fileList" :key="index" :data-url="item.url"
						@tap="pdfPage(item.name, item.url)">
						<image src="@/static/organization.png" mode="aspectFill"></image>
						<view class="cu-tag bg-red" @tap.stop="DelFile($event,item.fId,index)">
							<text class='cuIcon-close'></text>
						</view>
						<view class="fileText"> {{item.name}}</view>
					</view>
					<view v-if="fileList.length<count">
						<lsj-upload ref="lsjUpload" childId="upload" :width="heights" :height="heights" :option="option"
							:size="size" :debug="debug" :instantly="instantly" @progress="onprogress" @change="onChange"
							:count='count'>
							<view class="solids" style="width: 156rpx;height: 156rpx;">
								<text class='cuIcon-add'></text>
							</view>
						</lsj-upload>

					</view>


				</view>
			</view>
		</form>
		<view class="cu-form-group" style="margin-bottom: 145upx;">
		</view>
		<view class="" style="text-align: center;" @click="clickNum(1)">
			123
		</view>
		<div class="wrapper" v-if="appliance==1">
			<div class="list">
				<text class="text" @click="clickNum('0')">保存</text>
				<text class="text" @click="clickNum('1')">提交</text>
			</div>
		</div>

		<loading :shadeShow="shadeShow" :shadeClick="false" :backgroundColor="backgroundColor" :width="width"
			:height="height" ref="loading" :custom="false" :type="1" @callback="callback()">

		</loading>
	</view>
</template>
<script src="./index.js">

</script>

<style scoped lang="less">
	@import "./index.less";

	
</style>
